package com.example.demo.mapper;

import com.example.demo.entity.BookWithUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BookWithUserMapper {
    int insert(BookWithUser bookWithUser);
    int updateRecord(BookWithUser record);
    int deleteRecord(BookWithUser record);
    int prolongRecord(BookWithUser record);
    List<BookWithUser> selectPage(@Param("offset") int offset, @Param("pageSize") int pageSize,
                                  @Param("search1") String search1, @Param("search2") String search2, @Param("search3") String search3);
    int selectCount(@Param("search1") String search1, @Param("search2") String search2, @Param("search3") String search3);
}